Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(PageReference): Public page reference lookups #1369

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

mejo-
Copy link
Member

@mejo- mejo- commented Jul 16, 2024

Allow to resolve page references by share token to support lookups from public shares. This adds link previews for links to other pages in the same collective in public shares.

It requires the new public reference API from nextcloud/server#46378 and the Text app being built with nextcloud-libraries/nextcloud-vue#5800.

Fixes: #1275
Contributes to nextcloud/text#5520

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • Tests (unit, integration and/or end-to-end) passing and the changes are covered with tests

@mejo- mejo- self-assigned this Jul 16, 2024
Copy link

cypress bot commented Jul 16, 2024

1 failed and 2 flaky tests on run #1734 ↗︎

1 223 0 0 Flakiness 2

Details:

feat(PageReference): Public page reference lookups
Project: Collectives Commit: ad14083e98
Status: Failed Duration: 10:06 💡
Started: Jul 24, 2024 10:12 PM Ended: Jul 24, 2024 10:22 PM
Failed  cypress/e2e/pages.spec.js • 1 failed test • Nextcloud master

View Output

Test Artifacts
Pages > Creating a page from template > New page has template content Screenshots
Flakiness  pages-links.spec.js • 1 flaky test • Nextcloud master

View Output

Test Artifacts
Page link handling > Link handling to collectives in view mode > Opens link with relative path to page in this collective without fileId in same tab Screenshots
Flakiness  pages.spec.js • 1 flaky test • Nextcloud master

View Output

Test Artifacts
Pages > Editing a page > Lists attachments for the page and allows restore Screenshots

Review all test suite changes for PR #1369 ↗︎

@mejo- mejo- force-pushed the feat/public_page_references branch 2 times, most recently from 484cf64 to cb0bb54 Compare July 17, 2024 14:13
@mejo- mejo- force-pushed the feat/public_page_references branch from cb0bb54 to cd09e28 Compare July 24, 2024 08:51
@mejo- mejo- marked this pull request as ready for review July 24, 2024 08:52
Copy link
Collaborator

@max-nextcloud max-nextcloud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice to see the tests added - that makes me confident it works.

Only skimmed through the php code though. So if you want a thorough review you'll need to wait for @juliushaertl or so.

Besides one minor suggestion this looks good to me.

cypress/e2e/pages-links.spec.js Outdated Show resolved Hide resolved
@mejo- mejo- force-pushed the feat/public_page_references branch from cd09e28 to 30b9cd3 Compare July 24, 2024 21:52
Allow to resolve page references by share token to support lookups from
public shares. This adds link previews for links to other pages in the
same collective in public shares.

It requires the new public reference API from nextcloud/server#46378 and
the Text app being built with nextcloud-libraries/nextcloud-vue#5800.

Fixes: #1275
Contributes to nextcloud/text#5520

Signed-off-by: Jonas <jonas@freesources.org>
@mejo- mejo- force-pushed the feat/public_page_references branch from 30b9cd3 to ad14083 Compare July 24, 2024 22:01
@mejo- mejo- merged commit d90167f into main Jul 24, 2024
49 of 52 checks passed
@mejo- mejo- deleted the feat/public_page_references branch July 24, 2024 22:43
Copy link
Member

@juliusknorr juliusknorr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Also from my side

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Internal links don't work with public shares
3 participants